export default function (target) {
    for (let i = 1, j = arguments.length; i < j; i++) {
        const source = arguments[i] || {};
        for (const prop in source) {
            // eslint-disable-next-line no-prototype-builtins
            if (source.hasOwnProperty(prop)) {
                const value = source[prop];
                if (value !== undefined) {
                    target[prop] = value;
                }
            }
        }
    }

    return target;
};
